package com.cssl.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.io.Serializable;

/**
 * 
 * @TableName tb_item_cat
 */
@TableName(value ="tb_item_cat")
@Data
@Repository
@Component
public class TbItemCat implements Serializable {
    /**
     * 商品菜单id，主键
     */
    @TableId(type = IdType.AUTO)
    @TableField(value = "cat_id")
    private Integer cat_id;

    /**
     * 类别名称
     */
    @TableField(value = "cat_name")
    private String cat_name;

    /**
     * 父级id,0为一级目录
     */
    @TableField(value = "cat_pid")
    private Integer catPid;

    /**
     * 类别级别
     */
    @TableField(value = "cat_level")
    private Integer catLevel;

    /**
     * 是否删除
     */
    @TableField(value = "cat_deleted")
    private Integer cat_deleted;

    /**
     * 类别图片
     */
    @TableField(value = "cat_icon")
    private String catIcon;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}